
package com.hm.ipay.domain.result;

import com.hm.ipay.component.Translator;

public enum ExceptionMsg {
	SUCCESS("000000", "success"),
	FAILED("999999","failed"),
    PasswordError("100000","passworderror"),
    MissUserName("100001","missusername"),
    MissTel("100002","misstel"),
    MissPassword("100003","misspassword"),
    MissPayPassword("100004","misspaypassword"),
    UserNotFound("100005","usernotfound"),
    TelInUsed("100006","telinused"),
    ParameterError("100007","parametererror"),
    BalanceNotEnough("100008","balancenotenough"),
    AccountStatusError("100009","accountstatuserror"),
    TargetAccountStatusError("100010","targetaccountstatuserror"),
    AdminUserNotFound("100011","adminusernotfound"),
    AdminUserPasswordError("100012","adminuserpassworderror"),
    ValidateError("100013","validateerror"),
    GameAlreadyLottery("100014","gamealreadylottery"),
    GameAlreadyPart("100015","gamealreadypart"),
    ;

   private ExceptionMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    private String code;
    private String msg;

	public String getCode() {
		return code;
	}
	public String getMsg() {
        return Translator.toLocale(msg);
	}


}

